package com.k2.gulimall.member.service;

import com.k2.common.utils.R;
import com.k2.gulimall.member.service.impl.SpuInfoServiceImpl;
import com.k2.gulimall.member.vo.SpuImagesVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;


@Component
@FeignClient(value = "gulimall-product",fallback = SpuInfoServiceImpl.class)
public interface SpuInfoService {

    @PostMapping("/product/spuinfo/info/{id}")
    R spuInfo(@PathVariable("id") Long id);

    @PostMapping("/product/spuimages/getSpuImgs/{id}")
    List<SpuImagesVo> spuImgInfo(@PathVariable("id") Long id);
}
